import request from '@/utils/request'

// 查询术中清点记录列表
export function listDevicedetail(query) {
  return request({
    url: '/manage/devicedetail/list',
    method: 'get',
    params: query
  })
}

// 查询术中清点记录详细
export function getDevicedetail(surgeryDeviceDetailId) {
  return request({
    url: '/manage/devicedetail/' + surgeryDeviceDetailId,
    method: 'get'
  })
}

// 新增术中清点记录
export function addDevicedetail(data) {
  return request({
    url: '/manage/devicedetail',
    method: 'post',
    data: data
  })
}

// 修改术中清点记录
export function updateDevicedetail(data) {
  return request({
    url: '/manage/devicedetail',
    method: 'put',
    data: data
  })
}

// 删除术中清点记录
export function delDevicedetail(surgeryDeviceDetailId) {
  return request({
    url: '/manage/devicedetail/' + surgeryDeviceDetailId,
    method: 'delete'
  })
}
